ComponentOne ASP.NET MVC Controls
IsRequired Method (ColumnBaseBuilder<TControl,TBuilder>)

C1.Web.Mvc.Fluent Namespace > ColumnBaseBuilder<TControl,TBuilder> Class : IsRequired Method
The value.
Configurates C1.Web.Mvc.ColumnBase.IsRequired. Sets a value that determines whether values in the column are required.
Syntax
'Declaration
 
Public Function IsRequired( _
   ByVal value As Nullable(Of Boolean) _
) As TBuilder
public TBuilder IsRequired( 
   Nullable<bool> value
)

Parameters

value
The value.

Return Value

Current builder.
Remarks
By default, this property is set to null, which means values are required, but string columns may contain empty strings. When set to true, values are required and empty strings are not allowed. When set to false, null values and empty strings are allowed.
See Also

Reference

ColumnBaseBuilder<TControl,TBuilder> Class
ColumnBaseBuilder<TControl,TBuilder> Members